using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region TVstation

	/// <summary>
	/// TVstation object for NHibernate mapped table 'TVstation'.
	/// </summary>
	public class TVstation
	{
		#region Member Variables
		
		protected int _id;
		protected string _name;
		protected string _logoPic;
		protected string _provinceCode;
		protected string _cityCode;
		protected string _areaCode;
		protected string _adressRo;
		protected string _address;
		protected string _bigPic;
		protected string _telePhone;

		#endregion

		#region Constructors

		public TVstation() { }

		public TVstation( string name, string logoPic, string provinceCode, string cityCode, string areaCode, string adressRo, string address, string bigPic, string telePhone )
		{
			this._name = name;
			this._logoPic = logoPic;
			this._provinceCode = provinceCode;
			this._cityCode = cityCode;
			this._areaCode = areaCode;
			this._adressRo = adressRo;
			this._address = address;
			this._bigPic = bigPic;
			this._telePhone = telePhone;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual string Name
		{
			get { return _name; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Name", value, value.ToString());
				_name = value;
			}
		}

		public  virtual string LogoPic
		{
			get { return _logoPic; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for LogoPic", value, value.ToString());
				_logoPic = value;
			}
		}

		public  virtual string ProvinceCode
		{
			get { return _provinceCode; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for ProvinceCode", value, value.ToString());
				_provinceCode = value;
			}
		}

		public  virtual string CityCode
		{
			get { return _cityCode; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for CityCode", value, value.ToString());
				_cityCode = value;
			}
		}

		public  virtual string AreaCode
		{
			get { return _areaCode; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for AreaCode", value, value.ToString());
				_areaCode = value;
			}
		}

		public  virtual string AdressRo
		{
			get { return _adressRo; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for AdressRo", value, value.ToString());
				_adressRo = value;
			}
		}

		public  virtual string Address
		{
			get { return _address; }
			set
			{
				if ( value != null && value.Length > 200)
					throw new ArgumentOutOfRangeException("Invalid value for Address", value, value.ToString());
				_address = value;
			}
		}

		public  virtual string BigPic
		{
			get { return _bigPic; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for BigPic", value, value.ToString());
				_bigPic = value;
			}
		}

		public  virtual string TelePhone
		{
			get { return _telePhone; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for TelePhone", value, value.ToString());
				_telePhone = value;
			}
		}

		

		#endregion
	}
	#endregion
}